Skip to content

Update API to have an encodeFunctionPointer() - #8562

Closed
UvuvDev wants to merge 1 commit into
devfrom
encode_function_pointer
Closed

UvuvDev wants to merge 1 commit into
devfrom
encode_function_pointer

Conversation

@UvuvDev

@UvuvDev UvuvDev commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

If you want to have addresses for things like function calls in thumb2 able to be overwritten you currently have to manually change them rather than having it in the architecture class itself. This PR adds an API to have a mask that encodes the function pointer however way the architecture has it. So in thumb2, you can do encodeFunctionPointer(0xdeadbeee) and get 0xdeadbeef as a result, without doing the bit masks.

…ess manipulation when handling function calls
@UvuvDev UvuvDev closed this Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant